package com.xcity.game.battle.pve.employee.impl;

import com.xcity.game.battle.pve.PlayerBattler;
import com.xcity.game.battle.pve.employee.EmployeeSkillBattleContext;
import com.xcity.game.common.GameStaticConfig;
import com.xcity.game.employee.skill.EmployeeSkill;

//34		专注		提升所在建筑所有员工防御力{0=5#0}%
public class RAISE_BUILD_EMPLOYEES_DEFENSE_CONTEXT extends EmployeeSkillBattleContext {

	public RAISE_BUILD_EMPLOYEES_DEFENSE_CONTEXT(PlayerBattler player, EmployeeSkill ref) {
		super(player, ref);
	}

	@Override
	public boolean trigger() {
		return false;
	}

	@Override
	public <T> T calc(int id, Object... vals) {
		Float ratio = ref.getTemplate().getInitVal(0) / GameStaticConfig.percentBase;
		return (T) ratio;
	}

}
